package com.xxx.auth.web.vo;

import com.xxx.auth.entity.enums.UserType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class RegisterForm {

    @Length(min = 1, max = 95)
    @NotBlank
    @Schema(title = "用户名", maxLength = 95)
    private String username;

    @Length(min = 4, max = 95)
    @NotBlank
    @Schema(title = "密码", maxLength = 95)
    private String password;

    @Length(min = 1, max = 95)
    @NotBlank
    @Schema(title = "姓名", maxLength = 95)
    private String name;

    @NotNull
    @Schema(title = "用户类型", description = "ADMINISTRATOR：访问管理系统，USER：访问M-DOS系统")
    private UserType userType;

}
